package com.sservice.base.entity.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class ListResult<List> extends BaseResult implements Serializable {

    private static final long serialVersionUID = -4185151304730685014L;
    private List list;
    private List beforePage;
    private Object extra;

    public ListResult(boolean success, String error, int code) {
        super.success = success;
        super.error = error;
        super.code = code;
    }

    public ListResult(boolean success, List data) {
        super.success = success;
        super.code = 200;
        this.list = data;
    }

}
